#pragma once
#include "Geometricobject.h"

class CPlane : public CGeometricObject
{
public:
	CPlane(void);
	CPlane(const CPoint3D& position, const CVector3D& normVector);
	~CPlane(void);

	//Set - Get
	void setPosition(const CPoint3D& position);
	const CPoint3D& getPosition() const;
	void setNormal(const CVector3D& normal);
	const CVector3D& getNormal() const;

	//Operator
	CPlane& operator= (const CPlane& plane);

	//draw
	virtual void Draw();

private:
	void alignNormalVertorOnY();

private:
	CPoint3D		m_position;
	CVector3D		m_normalVector;
	float			m_xWidth, m_zWidth;
};
